//********************************************************************************
//  Book2.java  Java  Foundations
// 
//  Represents a book.Use as the parent of a derived class to
//  demonstrate inheritance and the use of the super reference.
//********************************************************************************

public class Book2
{
  protected int pages;

 //----------------------------------------------------------------------
 //   Constructor: Sets up the bookwith thr specified number of
 //   pages.
 //----------------------------------------------------------------------
 public Book2 (int numPages)
 {
   pages = numPages;
  }

  //------------------------------------------------------------------
  // Pages mutator.
  //------------------------------------------------------------------

  public int getPages ()
  {
    return pages;
  }
}
